package cn.com.cym.gamezao.entity.recruit;

import cn.com.cym.gamezao.base.BaseEntity;
import cn.com.cym.gamezao.entity.authorize.User;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@Entity
@Accessors(chain = true)
@Table(name = "r_user_work_history")
@ApiModel(description="用户工作经历")
public class UserWorkHistory extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 382511090149389891L;

    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;


    @ManyToOne
    @JoinColumn(name = "work_history_id")
    private WorkHistory workHistory;
}
